function confirmDelete() {
  if (confirm("Are you sure want to Delete this Data?")) {
    return true;
  }
  return false;
}


function check_email(val){
    if(!val.match(/\S+@\S+\.\S+/)){ 
      return false;
    }
    if( val.indexOf(' ')!=-1 || val.indexOf('..')!=-1){
      return false;
    }
    return true;
}